package com.yonyou.gmmc.service.points.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.marketing.common.dto.points.CustomerPointsDto;
import org.springframework.stereotype.Component;

import com.yonyou.gmmc.common.annotation.OracleDb;
import com.yonyou.gmmc.service.points.model.TtCustomerPointsLog;

import tk.mybatis.mapper.common.Mapper;

@OracleDb
@Component
public interface TtCustomerPointsLogMapper extends Mapper<TtCustomerPointsLog> {
	
	/**
	 * 查询积分
	 * yaohan
	 * @param userId
	 * @return
	 */
	public  List<CustomerPointsDto> getCustomerPoints(@Param("openId") String openId);
	
	/**
	 * 查询个人总积分
	 * @param userId
	 * @return
	 */
	public  List<CustomerPointsDto> getCountpoint(@Param("openId") String openId);

	/**
	 * 查询经销商积分
	 * @param userId
	 * @return
	 */
	public CustomerPointsDto getDealerPoint(@Param("openId") String openId);

	/**
	 * 查询经销商积分明细
	 * @param userId
	 * @return
	 */
	public List<CustomerPointsDto> getDealerPointLog(@Param("openId") String openId);
	
	/**
	* 查询积分兑换记录
	* @author Administrator
	* @date 2017年12月1日
	* @param openId
	* @return
	 */
	public Map<String,Object> conversionLog(@Param("openId") String openId);
	
}